package cn.com.jit.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.com.jit.service.UserService;

@Controller
public class UserController {
	
	@Autowired
	private UserService userService;
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	
	@RequestMapping("user.do")
	private String list(ModelMap map){
		
		map.addAttribute("list", userService.list());
		
		return "show.jsp";
	}
	
	@RequestMapping("inputindex.do")
	public String inputindex(){
		
		return "index.jsp";
	}

}
